import { defineStore } from 'pinia'
import type { PartialConsult } from '../../../src/types/consult'
import type { ConsultType } from '../../../src/enums'
export const useConsultStore = defineStore(
  'cp-consult',
  () => {
    const consult = ref<PartialConsult>({})
    // 设置问诊类型
    const setType = (type: ConsultType) => (consult.value.type = type)
    return { consult, setType }
  },
  {
    persist: true
  }
)